home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / strace.vim < prev    next >
Encoding:
Text File  |  2001-07-13  |  1.9 KB  |  62 lines

  1. " Vim syntax file
  2. " This is a GENERATED FILE. Please always refer to source file at the URI below.
  3. " Language: strace output
  4. " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
  5. " Last Change: 2001-04-26
  6. " URI: http://physics.muni.cz/~yeti/download/strace.vim
  7.  
  8.  
  9. " Setup
  10. if version >= 600
  11.   if exists("b:current_syntax")
  12.     finish
  13.   endif
  14. else
  15.   syntax clear
  16. endif
  17.  
  18. syn case match
  19.  
  20. " Parse the line
  21. syn match straceSpecialChar "\\\d\d\d\|\\." contained
  22. syn region straceString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=straceSpecialChar oneline
  23. syn match straceNumber "\W[+-]\=\(\d\+\)\=\.\=\d\+\([eE][+-]\=\d\+\)\="lc=1
  24. syn match straceNumber "\W0x\x\+"lc=1
  25. syn match straceNumberRHS "\W\(0x\x\+\|-\=\d\+\)"lc=1 contained
  26. syn match straceOtherRHS "?" contained
  27. syn match straceConstant "[A-Z_]\{2,}"
  28. syn region straceVerbosed start="(" end=")" matchgroup=Normal contained oneline
  29. syn region straceReturned start="\s=\s" end="$" contains=StraceEquals,straceNumberRHS,straceOtherRHS,straceConstant,straceVerbosed oneline transparent
  30. syn match straceEquals "\s=\s"ms=s+1,me=e-1
  31. syn match straceSysCall "^\w\+"
  32. syn match straceParenthesis "[][(){}]"
  33. syn match straceOperator "[-+=*/!%&|:,]"
  34. syn region straceComment start="/\*" end="\*/" oneline
  35.  
  36. " Define the default highlighting
  37. if version >= 508 || !exists("did_strace_syntax_inits")
  38.   if version < 508
  39.     let did_strace_syntax_inits = 1
  40.     command -nargs=+ HiLink hi link <args>
  41.   else
  42.     command -nargs=+ HiLink hi def link <args>
  43.   endif
  44.  
  45.   HiLink straceComment     Comment
  46.   HiLink straceVerbosed    Comment
  47.   HiLink straceNumber      Number
  48.   HiLink straceNumberRHS   Type
  49.   HiLink straceOtherRHS    Type
  50.   HiLink straceString      String
  51.   HiLink straceConstant    Function
  52.   HiLink straceEquals      Type
  53.   HiLink straceSysCall     Statement
  54.   HiLink straceParenthesis Statement
  55.   HiLink straceOperator    Normal
  56.   HiLink straceSpecialChar Special
  57.  
  58.   delcommand HiLink
  59. endif
  60.  
  61. let b:current_syntax = "strace"
  62.